Skip to content

Add the skill point (CP) curve - #172

Merged
erwan-joly merged 1 commit into
masterfrom
claude/project-thread-wi9f5y-skill-points
Nov 12, 2026
Merged

erwan-joly merged 1 commit into
masterfrom
claude/project-thread-wi9f5y-skill-points

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Adds ISkillPointService.GetSkillPoints(class, jobLevel), the CP a character can spend on class skills. It gives two CP per job level, plus forty once the character has a class, so a level 80 job ends at 200. The approval table lists every class and job level.

Evidence. The login traces include job level 80 characters. Each one has a lev packet with its remaining CP and a ski packet with its skills. Adding the remaining CP to the CP cost of the active skills listed comes to 200 for every such character. Passive training courses are left out of that sum: with them included, the total is 212. Every traced character is at job level 80, so the slope below the cap is not confirmed. The code comment says so.

This is needed by NosCore #2881, which refuses skill purchases without enough CP and shows the remaining CP in the client.

New feature, so this is a minor bump: 6.4.0.


Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Added skill point calculations based on character class and job level. Adventurers receive 2 points per job level; other classes receive an additional 40 points.
  • Documentation
    • Added tables showing skill point totals across job levels for Adventurers, Swordsmen, Archers, Mages, and Martial Artists.

Two CP per job level, plus forty once the character has a class. Login
traces of job level 80 characters land on 200 CP once their active
skills are paid for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkVtYup7KTZ63CJcxZT
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds ISkillPointService and SkillPointService. The service calculates skill points from job level and character class. A documentation test generates a table of values for Adventurer, Swordsman, Archer, Mage, and MartialArtist.

Changes

Skill point calculation

Layer / File(s) Summary
Service contract and calculation
src/NosCore.Algorithm/SkillPointService/ISkillPointService.cs, src/NosCore.Algorithm/SkillPointService/SkillPointService.cs
ISkillPointService defines GetSkillPoints. SkillPointService returns two points per job level, plus 40 points for classes other than Adventurer.
Documented skill-point values
test/NosCore.Algorithm.Tests/DocumentationTest.cs, documentation/DocumentationTest.SkillPointDocumentation.approved.md
The documentation test generates a table of skill-point values. The approved table covers Adventurer job levels 1–20 and other classes’ job levels 1–80.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: claude

Merge Risk: Minimal · up to ba4d2

This adds a new skill-point lookup service and documents its values. It does not change existing behavior, and no merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Add the skill point (CP) curve" matches the main change. The PR adds a skill point service (ISkillPointService and SkillPointService) that computes CP per job level, plus a documentation ta…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Add the skill point (CP) curve" matches the main change. The PR adds a skill point service (ISkillPointService and SkillPointService) that computes CP per job level, plus a documentation table and a test that generates it. The title is short, specific, and names the primary feature.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 001a36e and ba4d2d1.

Files selected for processing: 4

  • documentation/DocumentationTest.SkillPointDocumentation.approved.md
  • src/NosCore.Algorithm/SkillPointService/ISkillPointService.cs
  • src/NosCore.Algorithm/SkillPointService/SkillPointService.cs
  • test/NosCore.Algorithm.Tests/DocumentationTest.cs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@erwan-joly
erwan-joly merged commit 9e41e4c into master Nov 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants